package exception;

public class Test {
	
	
	
	public static void main(String[] args) {
		
		int sz[]=new int[5];
		
		try {
			//System.out.println(sz[5]);
			System.out.println("我执行了吗？");
			int n=9/0;
		} catch (ArithmeticException e) {
			System.out.println("出现算数异常");
			 
		} catch (ArrayIndexOutOfBoundsException e) {
			System.out.println("数组下标异常");
			 
		} catch (Exception e) {
			System.out.println("其他异常");
			 
		}finally {
			System.out.println("都会执行");
		}
		
		 
		
		
		System.out.println("你好");
		
	 
		
		
	}

}
